import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_base_widget/base/base.dart';
import 'dart:io' show Platform;

class CustomNativePage extends BasePage {
  @override
  Widget rebuild(BuildContext context) {

    Widget child = Container();

    if(Platform.isIOS){
      child = UiKitView(
                  viewType: "GoogleMapView",
                  creationParams: "click me",
                  creationParamsCodec: StandardMessageCodec(),
                );
    }

    if(Platform.isAndroid) {
      child = AndroidView(
                  viewType: "com.androidView",
                );
    }

    return Container(
      alignment: Alignment.center,
      child: Container(
        // height: 300,
        child: child
      ),
    );
  }
}